import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_role' })
export default class SysRole extends BaseEntity {
  @Column({ name: 'user_id', type: 'varchar', comment: '用户id' })
  @ApiProperty()
  userId: string;

  @Column({ unique: true, comment: '角色名称' })
  @ApiProperty()
  name: string;

  @Column({ nullable: true, default: '', comment: '备注' })
  @ApiProperty()
  remark: string;
}
